package com.allo2o.common.mapper;

import com.allo2o.common.domain.OrderCommodityDO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderCommodityDOMapper {
    int deleteByPrimaryKey(String id);

    int insert(OrderCommodityDO record);

    int insertSelective(OrderCommodityDO record);

    OrderCommodityDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(OrderCommodityDO record);

    int updateByPrimaryKey(OrderCommodityDO record);

    List<OrderCommodityDO> selectByOrderId(String orderId);

    void inserCommodities(List<OrderCommodityDO> list);
}